Chapter 4 - Advanced Printing Features
This chapter describes how your application can use printing-related objects in ways that may not be required for most applications. Read the information in this chapter if you want your application to read or modify print files after they have been printed, create and use custom paper types, or explicitly control the way that QuickDraw GX performs certain printing operations.To use this chapter, you should also be familiar with the printing-related objects, including collection objects that QuickDraw GX uses to store job and format information, as introduced in the chapter "Introduction to Printing With QuickDraw GX" in this book. Because the objects and techniques discussed in this chapter build on applications that already provide core printing features, you should be familiar with these features, as introduced in the chapter "Introduction to Printing With QuickDraw GX" and discussed in detail in the "Core Printing Features" chapter of this book.
This chapter describes the concepts required to use advanced QuickDraw GX printing features and terms and then explains how to
This chapter also describes the resource for Printing Status dialog boxes, as well as status constants. Although you can customize Printing Status dialog boxes in your application, they are used primarily by printer drivers and printing extensions. For information about the use of Printing Status dialog boxes by printer drivers and printing extensions, see the resource chapter of Inside Macintosh: QuickDraw GX Printing Extensions and Drivers.
- manipulate a job object; for example, using its reference constant property
- work with a printer object to obtain information about the device it represents, such as information about the driver, its resolution, and color printing capabilities
- manipulate a print file object that represents a spooled file or a portable digital document
- manipulate a paper-type object to define paper sizes for different requirements
- optimize printing for specific devices
Chapter Contents
- About Advanced Printing Features
- Printer Objects
- Printer Driver Types
- Printer View Devices
- Color Matching for Printers
- Print File Objects
- Synonyms
- General-Purpose PostScript Operator Synonym
- PostScript Control Information Synonym
- Dash Synonym
- Line Cap Synonym
- Halftone Synonym
- Pattern Synonym
- Cubic Synonym
- QuickDraw Picture Synonym
- Printing Modes
- Pen Tables for Vector Devices
- Using Advanced Printing Features
- Using Advanced Job Object Functions
- Obtaining Printer and Printer Driver Information for a Job
- Getting and Setting the Reference Constant for a Job Object
- Copying Job Object Information
- Working With Printer Objects
- Determining a Printer's Resolution
- Retrieving the Color Profile and Color Space for a Printer
- Manipulating Print File Objects
- Opening and Closing a Print File
- Saving a Print File
- Obtaining the Job Object for a Print File
- Reading Print File Data
- Counting the Pages in a Print File
- Adding or Deleting Print File Pages
- Defining Different Paper Sizes
- Creating a Paper-Type Object
- Obtaining the Name of a Paper Type
- Obtaining the Dimensions of a Paper Type
- Scanning the Paper Types Available to a Job
- Implementing Direct-Mode Printing
- Formatting for Text Job Format Mode Printing
- Using Synonyms
- Advanced Printing Features Reference
- Constants and Data Types for Advanced Printing Features
- Job Format Modes
- Text Job Format (Direct) Mode
- The Status Structure
- Pen Tables for Vector Devices
- Constants and Data Types for Synonyms
- General-Purpose PostScript Operator Synonym
- PostScript Control Information Synonym
- Dash Synonym
- Halftone Synonym
- Line Cap Synonym
- Pattern Synonym
- Cubic Synonym
- QuickDraw Picture Synonym
- Functions
- Advanced Job Object Functions
- Manipulating Printer Objects
- Working With QuickDraw GX Print Files
- Working With Paper Types
- Formatting for Specific Devices
- Color Profile Functions
- Idle Job Function
- Application-Defined Functions
- Message Override Function for the Printing Status Dialog Box
- Looping Through a Printer's View Devices
- Looping Through a Job's Paper Types
- The Status Resource
- Summary of Advanced Printing Features
- Constants and Data Types for Advanced Printing Features
- Job Format Modes
- Text Job Format (Direct) Mode
- The Status Structure
- Pen Tables for Vector Devices
- Constants and Data Types for Synonyms
- General-Purpose PostScript Operator Synonym
- PostScript Control Information Synonym
- Dash Synonym
- Halftone Synonym
- Line Cap Synonym
- Pattern Synonym
- Cubic Synonym
- QuickDraw Picture Synonym
- Functions
- Working With Advanced Job Object Functions
- Manipulating Printer Objects
- Working With QuickDraw GX Print Files
- Working With Paper Types
- Formatting for Specific Devices
- Color Profile Functions
- Idle Job Function
- Application-Defined Functions
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help